{include file="public/header" /}



<div class="page">
    {notempty name="order_info"}
    <form id="ship_form" method="post" name="ship_form" action="{:url('Pointorder/order_ship',['id'=>$Request.get.id])}">
        <table class="ds-default-table">
            <tbody>
            <tr class="noborder">
                <td colspan="2"><label>{$Think.lang.admin_pointorder_membername}:</label></td>
            </tr>
            <tr class="noborder">
                <td class="vatop rowform">{$order_info.point_buyername}</td>
                <td class="vatop tips"></td>
            </tr>
            <tr>
                <td colspan="2"><label> {$Think.lang.admin_pointorder_ordersn}:</label></td>
            </tr>
            <tr class="noborder">
                <td class="vatop rowform">{$order_info.point_ordersn}</td>
                <td class="vatop tips"></td>
            </tr>
            <tr>
                <td colspan="2"><label class="validation" for="shippingcode"> {$Think.lang.admin_pointorder_shipping_code}:</label></td>
            </tr>
            <tr class="noborder">
                <td class="vatop rowform"><input type="text" id="shippingcode" name="shippingcode" class="txt" value="{$order_info.point_shippingcode}"></td>
                <td class="vatop tips"></td>
            </tr>
            <tr>
                <td colspan="2"><label class="validation">{$Think.lang.admin_pointorder_express_code}:</label></td>
            </tr>
            <tr class="noborder">
                <td class="vatop rowform" colspan="2">
                    <select name="express_code">
                        <option value="">{$Think.lang.ds_please_choose}</option>
                        {foreach name="express_list" item="v"}
                        <option value="{$v.express_code}" {$order_info.point_shipping_ecode == $v.express_code ? 'selected' :''}>{$v.express_name}</option>
                        {/foreach}
                    </select>
                </td>
            </tr>
            <tfoot>
            <tr class="tfoot">
                <td colspan="2" >
                    <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
                </td>
            </tr>
            </tfoot>
        </table>
    </form>
    {else/}
    <div class='msgdiv'> {$errormsg} <br>
        <br>
        <a class="forward" href="{:url('Pointorder/pointorder_list')}">{$Think.lang.admin_pointorder_gobacklist}</a> </div>
    {/notempty}
</div>

<script type="text/javascript">
    $(function(){
        $('#ship_form').validate({
            errorPlacement: function(error, element){
                error.appendTo(element.parent().parent().prev().find('td:first'));
            },
            rules : {
                shippingcode  : {
                    required : true
                },
                shippingdesc  : {
                    required : true
                }
            },
            messages : {
                shippingcode  : {
                    required : '{$Think.lang.admin_pointorder_ship_code_nullerror}'
                },
                shippingdesc  : {
                    required : '{$Think.lang.ds_required_error}'
                }
            }
        });
    });
</script>